package com.his.controller;

import com.his.bean.DzmHisRegistration;
import com.his.service.DzmHisRegistrationService;
import com.his.utils.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
public class DzmHisRegistrationController {

    @Autowired
    DzmHisRegistrationService dzmHisRegistrationService;

    @GetMapping("reg_cx")
    public ResponseResult reg_cx(DzmHisRegistration dzmhisregistration){
        System.out.println(dzmhisregistration);
        return new ResponseResult(200,"查询成功",dzmHisRegistrationService.reg_cx(dzmhisregistration));
    }
    @PostMapping("reg_xg")
    public ResponseResult reg_xg(@RequestBody DzmHisRegistration dzmhisregistration ){

//        return dzmHisMemberService.getDzm_his_auth_rule()
        return new ResponseResult(200,"查询成功",dzmHisRegistrationService.reg_xg(dzmhisregistration));
    }

    @PostMapping("reg_tf")
    public ResponseResult reg_tf(@RequestBody DzmHisRegistration dzmhisregistration ){
        System.out.println(dzmhisregistration+"regtf");
//        return dzmHisMemberService.getDzm_his_auth_rule();
        return new ResponseResult(200,"查询成功",dzmHisRegistrationService.reg_tf(dzmhisregistration));
    }

    @PostMapping("reg_xgzt")
    public ResponseResult reg_xgzt(@RequestBody DzmHisRegistration dzmhisregistration){
        System.out.println(dzmhisregistration);
//        return dzmHisMemberService.getDzm_his_auth_rule();
        return new ResponseResult(200,"查询成功",dzmHisRegistrationService.reg_xgzt(dzmhisregistration));
    }

}
